﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace coliseu.BussinessLayer
{
    public class MunicipioBL
    {
        private coliseu_municipioEntities2 cEntities;

        public MunicipioBL()
        {
            cEntities = new coliseu_municipioEntities2(Properties.Settings.Default.conn_coliseu_municipio);
        }

        public List<municipio> selecionar(string cep)
        {
            return (from x in cEntities.municipio where x.cep == cep select x).ToList();
        }
    }
}
